package com.sanhuo.idms.dao;

import com.sanhuo.idms.entity.College;
import com.sanhuo.triild.Basic.BaseMapper;
import com.sanhuo.triild.annotation.*;

import java.util.List;

@Mapper
public interface CollegeMapper extends BaseMapper<College> {

//    @Select("select * from college where id = #{id}")
//    College findById(String id);

//    @Select("select * from college order by id asc")
//    List<College> findAll();

//
//    @InsertProvider(type = CollegeProvider.class, method = "insert")
//    void save(College college);

    @Select("select id from college")
    List<String> findIds();

    @Delete("delete from college where id = #{id}")
    void remove(String id);
}
